namespace Framework.UI
{
	public partial class CreateRoomEditFrame : UIFrame
	{
		TMPro.TMP_InputField InputRoomName;
		TMPro.TMP_InputField InputRoomPassword;
		UnityEngine.UI.Button BtnOK;
		UnityEngine.UI.Button BtnClose;
		protected override void InitScriptBinder()
		{
			InputRoomName = scriptBinder.GetValue() as TMPro.TMP_InputField;
			InputRoomPassword = scriptBinder.GetValue() as TMPro.TMP_InputField;
			BtnOK = scriptBinder.GetValue() as UnityEngine.UI.Button;
			BtnClose = scriptBinder.GetValue() as UnityEngine.UI.Button;
		}
		
		protected override void RegisterUIEvent()
		{
			InputRoomName.onEndEdit.AddListener(this.OnInputRoomNameEndEdit);
			InputRoomPassword.onEndEdit.AddListener(this.OnInputRoomPasswordEndEdit);
			BtnOK.onClick.AddListener(this.OnBtnOKClicked);
			BtnClose.onClick.AddListener(this.OnBtnCloseClicked);
		}
		
		protected override void UnregisterUIEvent()
		{
			InputRoomName.onEndEdit.RemoveListener(this.OnInputRoomNameEndEdit);
			InputRoomPassword.onEndEdit.RemoveListener(this.OnInputRoomPasswordEndEdit);
			BtnOK.onClick.RemoveListener(this.OnBtnOKClicked);
			BtnClose.onClick.RemoveListener(this.OnBtnCloseClicked);
		}
	}
}
